<template>
  <!-- <div class="wrapper">
    <Anchor :labelList="labels">
      <div class="line" id="row-01">
        <BasicInfo :rowData="formData" :listAllData="listAllData" :isOk="isOk"/>
      </div>
      <div class="line" id="row-02">
        <SalesInfo :rowData="formData" :listAllData="listAllData" :isOk="isOk"/>
      </div>
      <div class="line" id="row-03">
        <AfterInfo :rowData="formData" :listAllData="listAllData" :isOk="isOk"/>
      </div>
    </Anchor>
  </div>
  <div> -->
  <div >
    <LazyLoadTab v-model="activeName" :tabMenus="menus"></LazyLoadTab>
  </div>
</template>

<script>
import { getlistAllData} from "@/api/common/org/dealerCompany";
import { authority } from '@/utils/authMixin';
import { dictionary } from '@/utils/dictMixin';
/* import BasicInfo from './basicInfo';
import SalesInfo from './salesInfo';
import AfterInfo from './afterInfo';
import BrandInfo from './brandInfo' */
export default {
  name: 'DealerCompany',
  mixins: [authority, dictionary],
  /* components: {
    BasicInfo,
    SalesInfo,
    AfterInfo,
    BrandInfo
  }, */

  data() {
    return {
      activeName: '基本信息',
      menus: [
        {
          title: '基本信息',
          path: 'common/org/dealerCompany/basicInfo',
          /* params: {
            "rowData":this.formData,
            "listAllData":this.listAllData,
            "isOk":this.isOk
          } */
        },
        {
          title: '销售信息',
          path: 'common/org/dealerCompany/salesInfo',
          /* params: {
            "rowData":this.formData,
            "listAllData":this.listAllData,
            "isOk":this.isOk
          } */
        },
        {
          title: '售后信息',
          path: 'common/org/dealerCompany/afterInfo',
          /* params: {
            "rowData":this.formData,
            "listAllData":this.listAllData,
            "isOk":this.isOk
          } */
        },
      ],
      /* labels: [
        { title: '基本信息', id: 'row-01' },
        { title: '销售信息', id: 'row-02' },
        { title: '售后信息', id: 'row-03' },
        ], */
      formData: {},
      listAllData:[],
      isOk:false
    };
  },
  async mounted () {
       await getlistAllData().then(res=>{
         this.listAllData=res.data
         this.isOk=true
       })
  },
  methods: {
    
  },
};
</script>

<style scoped>
.wrapper {
  height: calc(100vh - 110px);
}
</style>
